package com.UnionPayCenter.mapper;

import com.UnionPayCenter.account.entity.FundsBill;
import com.UnionPayCenter.account.entity.PayBill;
import com.UnionPayCenter.account.entity.dto.FundsBillDTO;

import java.util.List;

public interface FundsBillMapper {

    int deleteByPrimaryKey(String sn);

    int insert(FundsBill record);

    PayBill selectByPrimaryKey(Long id);

    int updateByPrimaryKey(FundsBill fundsBill);

    /**
     * 根据条件查询资金流水记录
     *
     * @param condition 查询条件
     * @return 资金流水记录
     */
    List<FundsBill> selectByCondition(FundsBillDTO condition);

    List<FundsBill> selectMpFundsByCondition(FundsBillDTO condition);
}